package com.avecsys.quotemanager.pojos.menu;

import java.util.HashSet;
import java.util.Set;

import com.avecsys.quotemanager.pojos.BasePojo;

/**
 * SubMenuEntity entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class SubMenuEntity extends BasePojo implements java.io.Serializable
{

	// Fields

	private Long subMenuId;

	private RootMenuEntity rootMenuEntity;

	private String subMenuName;

	private String subMenuDescription;

	private Long subMenuOrder;

	private String linkPath;

	private String icon;

	public SubMenuEntity(RootMenuEntity rootMenuEntity, String subMenuName, String subMenuDescription,
			Long subMenuOrder, String linkPath, String icon)
	{
		super();
		this.rootMenuEntity = rootMenuEntity;
		this.subMenuName = subMenuName;
		this.subMenuDescription = subMenuDescription;
		this.subMenuOrder = subMenuOrder;
		this.linkPath = linkPath;
		this.icon = icon;
	}

	private Set menuItems = new HashSet(0);

	/** default constructor */
	public SubMenuEntity()
	{}

	/** full constructor */
	/**
	 * @param rootMenuEntity
	 * @param subMenuName
	 * @param subMenuOrder
	 * @param menuItems
	 */
	public SubMenuEntity(RootMenuEntity rootMenuEntity, String subMenuName, Long subMenuOrder,
			Set menuItems)
	{
		this.rootMenuEntity = rootMenuEntity;
		this.subMenuName = subMenuName;
		this.subMenuOrder = subMenuOrder;
		this.menuItems = menuItems;
	}

	/**
	 * @return the icon
	 */
	public String getIcon()
	{
		return icon;
	}

	/**
	 * @return the linkPath
	 */
	public String getLinkPath()
	{
		return linkPath;
	}

	/**
	 * @return Set
	 */
	public Set getMenuItems()
	{
		return this.menuItems;
	}

	@Override
	public String getPkColumnName()
	{
		return "subMenuId";
	}

	// Constructors

	/**
	 * @return RootMenuEntity
	 */
	public RootMenuEntity getRootMenu()
	{
		return this.rootMenuEntity;
	}

	public String getSubMenuDescription()
	{
		return subMenuDescription;
	}

	// Property accessors

	/**
	 * @return Long
	 */
	public Long getSubMenuId()
	{
		return this.subMenuId;
	}

	/**
	 * @return String
	 */
	public String getSubMenuName()
	{
		return this.subMenuName;
	}

	/**
	 * @return Long
	 */
	public Long getSubMenuOrder()
	{
		return this.subMenuOrder;
	}

	@Override
	public boolean isPersisted()
	{
		// TODO Auto-generated method stub
		return false;
	}

	/**
	 * @param icon the icon to set
	 */
	public void setIcon(String icon)
	{
		this.icon = icon;
	}

	/**
	 * @param linkPath the linkPath to set
	 */
	public void setLinkPath(String linkPath)
	{
		this.linkPath = linkPath;
	}

	/**
	 * @param menuItems
	 */
	public void setMenuItems(Set menuItems)
	{
		this.menuItems = menuItems;
	}

	/**
	 * @param rootMenuEntity
	 */
	public void setRootMenu(RootMenuEntity rootMenuEntity)
	{
		this.rootMenuEntity = rootMenuEntity;
	}

	public void setSubMenuDescription(String subMenuDescription)
	{
		this.subMenuDescription = subMenuDescription;
	}

	/**
	 * @param subMenuId
	 */
	public void setSubMenuId(Long subMenuId)
	{
		this.subMenuId = subMenuId;
	}

	/**
	 * @param subMenuName
	 */
	public void setSubMenuName(String subMenuName)
	{
		this.subMenuName = subMenuName;
	}

	/**
	 * @param subMenuOrder
	 */
	public void setSubMenuOrder(Long subMenuOrder)
	{
		this.subMenuOrder = subMenuOrder;
	}

}